package com.example.demo.entity.repository;

import com.example.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @ClassName UserRepository
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/4/23 7:55 PM
 * @Version 1.0
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
	Optional<User> findUserByUsername(String username);
}
